<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui" 
      xmlns:component="http://java.sun.com/jsf/composite/component">

    <ui:composition template="/resources/include/template.xhtml">

        <ui:define name="title">

            <h:outputText value="#{bundle.Bambole} - #{bundle.Order}"/>

        </ui:define>

        <ui:define name="body">

            <h:form>

                <ui:include src="/resources/include/menu.xhtml"/> 

                <p:panel header="#{bundle.Order} - #{bundle.View}">           

                    <component:toolbar

                        refreshButtonDisabled="true"          
                        saveButtonDisabled="true"

                        previousButtonDisabled="#{!orderHeaderController.hasPreviousRecord}"
                        nextButtonDisabled="#{!orderHeaderController.hasNextRecord}"

                        returnButtonAction="#{orderHeaderController.prepareList}"
                        previousButtonAction="#{orderHeaderController.previousItem}"
                        nextButtonAction="#{orderHeaderController.nextItem}"
                        createButtonAction="#{orderHeaderController.prepareCreate}"
                        editButtonAction="#{orderHeaderController.prepareEdit}"
                        searchButtonAction="#{orderHeaderController.prepareSearch}"
                        deleteButtonAction="#{orderHeaderController.destroy}"

                        printButtonRendered="true"
                        printButtonAction="#{orderHeaderController.performPrint}"

                        additionalInfoButtonRendered="true"

                        menuButtonRendered="true"

                        menuItem01Value="#{bundle.Item}"
                        menuItem01Action="#{orderHeaderController.prepareOrderItemList}"            

                        /> 

                    <component:order_header

                        typeDisabled="true"
                        statusDisabled="true"
                        channelDisabled="true"
                        orderedDisabled="true"
                        organizationDisabled="true"
                        addressDisabled="true"
                        personDisabled="true"
                        paymentTermDisabled="true"
                        freightOrganizationDisabled="true"
                        freightOrganizationPersonDisabled="true"
                        freightEstimatedCostDisabled="true"
                        freightEstimatedTransitTimeDisabled="true"
                        estimatedDeliveryDateDisabled="true"
                        referenceDisabled="true"
                        descriptionDisabled="true"
                        amountDisabled="true"
                        discountDisabled="true"

                        documentRendered="true"
                        orderedRendered="true"
                        estimatedDeliveryDateRendered="true"
                        freightEstimatedCostRendered="true"
                        freightEstimatedTransitTimeRendered="true"
                        amountRendered="true"
                        discountRendered="true"
                        productAmountRendered="true"
                        discountedProductAmountRendered="true"
                        productDiscountRendered="true"
                        totalDiscountRendered="true"

                        />          

                </p:panel>

            </h:form>

        </ui:define>

    </ui:composition>

</html>
